package cn.stylefeng.guns.modular.cart.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import cn.stylefeng.guns.modular.cart.mapper.ShoppingCartItemMapper;
import cn.stylefeng.guns.modular.cart.entity.ShoppingCartItemEntity;
import cn.stylefeng.guns.modular.cart.service.ShoppingCartItemService;

/**
 * @author allen
 * @date 2021/4/12 10:20
 * @version 1.0
 */
@Service
public class ShoppingCartItemServiceImpl extends ServiceImpl<ShoppingCartItemMapper, ShoppingCartItemEntity> implements ShoppingCartItemService{

    @Override
    public int updateBatch(List<ShoppingCartItemEntity> list) {
        return baseMapper.updateBatch(list);
    }
    @Override
    public int updateBatchSelective(List<ShoppingCartItemEntity> list) {
        return baseMapper.updateBatchSelective(list);
    }
    @Override
    public int batchInsert(List<ShoppingCartItemEntity> list) {
        return baseMapper.batchInsert(list);
    }
    @Override
    public int insertOrUpdate(ShoppingCartItemEntity record) {
        return baseMapper.insertOrUpdate(record);
    }
    @Override
    public int insertOrUpdateSelective(ShoppingCartItemEntity record) {
        return baseMapper.insertOrUpdateSelective(record);
    }
}
